
<!DOCTYPE html>
<html lang="en-US">
<head>
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta charset="UTF-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="keywords" content="Yii2教程,Yii2项目" />
    <meta name="description" content="为人民服务, 只为人民服务" />
    <title>smister-个人博客</title>
	<script src="./js/jquery.js"></script>
</head>
<body>
    <div class="wrap">
        <nav id="w0" class="navbar-inverse navbar-fixed-top navbar" role="navigation">
			<div class="container">
			<div class="navbar-header">
				<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#w0-collapse">
					<span class="sr-only">Toggle navigation</span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
				</button>
				<a class="navbar-brand" href=".">Smister</a>
			</div>
			<div id="w0-collapse" class="collapse navbar-collapse">
			<ul id="w1" class="navbar-nav navbar-right nav">
			<form class="form-group pull-left" onsubmit="return false;" >
					 <input name="search" value="" id="search-content" type="text" class="form-control" placeholder="站内搜索">
					 <a href="javascript:void(0)" id="searching"><i class="glyphicon glyphicon-search icon-white"></i></a>
			</form>
			<li class="active"><a href=".">首页</a></li>
		</nav>
        <div class="container">
            <link rel="stylesheet" href="css/article.css" />
<div class="container">
    <div class="row">
        <div class="col-md-9" >
            <div class="content">
                <article class="thread thread-card  article-nav" style="padding: 5px 10px;">
                    <a href=".">首页</a>
                                         &gt;&gt; 关键词搜索                </article>
                                    <article class="thread thread-card">
                        <header>
                            <div class="time-label">
                                <span class="year">2016</span>
                                <span style="display:block">05</span>
                                <span style="display:block">10</span>
                            </div>
                            <h3 class="thread-title">
                                <a href="/article/5.html">sdfsdaf</a>
                            </h3>
                            <div class="thread-meta">
                                asdfas&nbsp;
                                <ul class="blog-category">
                                    <li>分类：Yii2</li>
                                    <li>浏览次数：3</li>
                                </ul>
                            </div>
                        </header>
                        <div class="clearfix"></div>
                        <div class="markdown-body">
                            asdfas                        </div>
                        <div class="thread-footer">
                            <a href="/article/5.html" class="ds-thread-bevel">阅读原文</a>
                        </div>
                    </article>
                                    <article class="thread thread-card">
                        <header>
                            <div class="time-label">
                                <span class="year">2016</span>
                                <span style="display:block">05</span>
                                <span style="display:block">15</span>
                            </div>
                            <h3 class="thread-title">
                                <a href="/article/6.html">tptptptptptp</a>
                            </h3>
                            <div class="thread-meta">
                                smister&nbsp;
                                <ul class="blog-category">
                                    <li>分类：tp</li>
                                    <li>浏览次数：2</li>
                                </ul>
                            </div>
                        </header>
                        <div class="clearfix"></div>
                        <div class="markdown-body">
                            asdfasfd                        </div>
                        <div class="thread-footer">
                            <a href="/article/6.html" class="ds-thread-bevel">阅读原文</a>
                        </div>
                    </article>
                                    <article class="thread thread-card">
                        <header>
                            <div class="time-label">
                                <span class="year">1990</span>
                                <span style="display:block">01</span>
                                <span style="display:block">01</span>
                            </div>
                            <h3 class="thread-title">
                                <a href="/article/7.html"></a>
                            </h3>
                            <div class="thread-meta">
                                &nbsp;
                                <ul class="blog-category">
                                    <li>分类：全部</li>
                                    <li>浏览次数：0</li>
                                </ul>
                            </div>
                        </header>
                        <div class="clearfix"></div>
                        <div class="markdown-body">
                                                    </div>
                        <div class="thread-footer">
                            <a href="/article/7.html" class="ds-thread-bevel">阅读原文</a>
                        </div>
                    </article>
                
                <div class="pagination">
                   <!-- 分页数据  -->
                    				</div>
            </div>

        </div>
        <aside class="col-md-3 sidebar">
			<section class="visitor card">
				<div class="top">
					<div class="user-avatar">
						<a href="javascript:;" class="avatar avatar-50">
							<img alt="Smister" src="http://www.smister.com/mrs.jpg">
						</a>
					</div>
					<h4 class="name">Smister</h4>
					<a href="javascript:;">一步一脚印 ，贵在坚持..</a>
				</div>
			</section>
			<section class="card">
				<h4>分类</h4>
				<ul>
                    					<li>
						<a href=".">全部</a>
					</li>
                    					<li>
						<a href="javascript:void(0);">PHP</a>
					</li>
                    					<li>
						<a href="/article/category/3.html">&nbsp;&nbsp;&nbsp;&nbsp;Yii2</a>
					</li>
                    					<li>
						<a href="/article/category/4.html">&nbsp;&nbsp;&nbsp;&nbsp;tp</a>
					</li>
                    				</ul>
			</section>

			 <section class="card">
				<h4>热门文章</h4>
				<ul>
                    					<li style="overflow:hidden;white-space: nowrap;text-overflow: ellipsis;">
						<a href="/article/1.html">test</a>
					</li>
                    					<li style="overflow:hidden;white-space: nowrap;text-overflow: ellipsis;">
						<a href="/article/5.html">sdfsdaf</a>
					</li>
                    					<li style="overflow:hidden;white-space: nowrap;text-overflow: ellipsis;">
						<a href="/article/6.html">tptptptptptp</a>
					</li>
                    					<li style="overflow:hidden;white-space: nowrap;text-overflow: ellipsis;">
						<a href="/article/7.html"></a>
					</li>
                    				</ul>
			</section>
	</aside>
	</div>
</div>        </div>
    </div>
<footer class="footer" style="height:auto;min-height:60px;background-color:#373737;">
        <div class="container">
            <p class="pull-left">&copy; Smister 2016 | 粤ICP备14038179号</p>
        </div>
</footer>
<link href="./bootstrap/css/bootstrap.css" rel="stylesheet" />
<link href="./css/site.css" rel="stylesheet" />
<link href="./css/style.css" rel="stylesheet" />
<script src="./bootstrap/js/bootstrap.js"></script>
<script type="text/javascript">
    var globalSearchUrl = '/site/search.html';
    $("#searching").click(function(){
        search($(this).siblings("input").val());
    });

    $("#search-content").keyup(function(e){
        if(e.keyCode == 13){
            search($(this).val());
        }
    });

    function search(search){
        search = $.trim(search);
        if(search == ""){
            alert("请输入搜索的内容");
            return false;
        }

        if(search.length > 255){
            alert("输入搜索的内容过长");
            return false;
        }

        var searchUrl = '';
        //$_GET['search']
        if(globalSearchUrl.indexOf("?") == -1){
            searchUrl = globalSearchUrl + '?&search=' + search;
        }else{
            searchUrl = globalSearchUrl + '&search=' + search;
        }

        window.location.href = searchUrl;

    }
</script>
</body>
</html>